﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecondLogin.aspx.cs" Inherits="NJL.WebUsers.SecondLogin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>登录-农家乐网</title>
    <link href="/Styles/base1.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/manage.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/Scripts/md5.js" type="text/javascript"></script>
    <script type="text/javascript">
        function openQQ() {
            var A = window.open("/logintoqq.aspx?websitecode=<%=FROM_WEBSITE_CODE %>&domain=<%=FROM_DOMAIN %>&url=<%=FROM_URL %>&logintype=opendivwindow", "TencentLogin", "width=450,height=320,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
            sessAjax();
        }
        function openRenRen() {
            var A = window.open("/renrencallback.aspx?websitecode=<%=FROM_WEBSITE_CODE %>&domain=<%=FROM_DOMAIN %>&url=<%=FROM_URL %>&logintype=opendivwindow", "RenRenLogin", "width=860,height=420,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
            sessAjax();
        }
        function openSina() {
            var A = window.open("/logintosina.aspx?websitecode=<%=FROM_WEBSITE_CODE %>&domain=<%=FROM_DOMAIN %>&url=<%=FROM_URL %>&logintype=opendivwindow", "SinaLogin", "width=650,height=420,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
            sessAjax();
        }
        function sessAjax() {
            $.ajax({
                type: 'get',
                url: '/Handle/Handler.ashx',
                data: 'SecondsessionUrl=<%=Request.QueryString["url"]%>&Random=' + Math.random(),
                dataType: 'text',
                success: function (msg) {

                },
                error: function () {

                }
            })
        }
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            var focusUserName = document.getElementById("<%=txtEmail.ClientID %>");
            document.getElementById("<%=txtEmail.ClientID %>").focus();
            
        }
    );
        function checkEmail() {
            var txtEmail = document.getElementById("<%=txtEmail.ClientID %>").value;
            txtEmail = $.trim(txtEmail);
            if (txtEmail == "") {
                alert("电子邮件地址不能为空哦^_^");
                return false;
            }
            var txtPwdEmail = document.getElementById("<%=txtPwdEmail.ClientID %>").value;
            txtPwdEmail = $.trim(txtPwdEmail);
            if (txtPwdEmail == "") {
                alert("密码不能为空哦^_^");
                return false;
            }
            document.getElementById("<%=hidEmail.ClientID %>").value = md5(txtPwdEmail);
        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hidEmail" runat="server" />
    <input type="hidden" id="hidFromWebSiteCode" runat="server" />
    <input type="hidden" id="hidFromDomain" runat="server" />
    <input type="hidden" id="hidFromURL" runat="server" />
    <div class="reg" style="height: 400px; border: none;">
        <h1>登录</h1>
        <div class="popup_main">
            <div class="item">
                <p class="info">
                    <label>
                        电子邮件(Email)</label></p>
                <asp:TextBox ID="txtEmail" runat="server" CssClass="input" Style="width: 220px;"></asp:TextBox>
                <span class="fonterror" runat="server" id="EmailError"></span>
            </div>
            <div class="item">
                <p class="info">
                    <label>
                        登录密码</label></p>
                <asp:TextBox ID="txtPwdEmail" runat="server" TextMode="Password" CssClass="input"
                    Style="width: 220px;"></asp:TextBox>
                <span class="bluelink"><a href="http://<%=FROM_DOMAIN %>/FindPassword.aspx" target="_blank">忘记密码？</a> <asp:Label ID="lbAUTH_GUID" runat="server"></asp:Label></span>
            </div>
            <asp:Button ID="btnEmail" runat="server" CssClass="claimLogin" OnClientClick="return checkEmail()"
                OnClick="btnEmail_Click" Style="_float: left" />
            <a href="http://<%=FROM_DOMAIN %>/Register.aspx" class="popup_join" target="_blank">还没有账号，马上注册</a>
        </div>
        <div class="cleanFlex">
        </div>
        <!--快捷登录-->
        <div class="fastlogin popFast">
            <p>
                快速登录？点一个试试~</p>
            <div>
                <span><a style="cursor: pointer" onclick="javascript:openQQ()" title="QQ登录" class="fastlogin_qq_120">
                </a></span><span><a style="cursor: pointer" onclick="javascript:openSina()" title="新浪微博登录"
                    class="fastlogin_sina_126"></a></span><span><a style="cursor: pointer" onclick="javascript:openRenRen()"
                        title="人人登录" class="fastlogin_renren_133"></a></span>
            </div>
            <div class="loginother" style="display: none;">
                <a style="cursor: pointer" onclick="javascript:openQQ()" class="qqlogin">QQ账号登录</a>
                <a style="cursor: pointer" onclick="javascript:openSina()" class="sinalogin">新浪微博登录</a>
                <a style="cursor: pointer" onclick="javascript:openRenRen()" class="renrenlogin">人人网账号登录</a>
                <a style="width: 66px; top: 116px; left: 3px; height: 67px; cursor: pointer" title="QQ账号登录"
                    onclick="javascript:openQQ()"></a><a style="width: 130px; top: 116px; left: 104px;
                        height: 69px; cursor: pointer" title="人人网账号登录" onclick="javascript:openRenRen()">
                    </a><a style="width: 66px; top: 119px; left: 261px; height: 67px; cursor: pointer"
                        title="新浪微博登录" onclick="javascript:openSina()"></a>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
